#!/usr/bin/env bash

if [ -z "${1}" ]; 
then 
    SEARCHDIR=".."
else 
    SEARCHDIR="${1}"
fi

find "${SEARCHDIR}" -type f -iname "*.pyc" | xargs rm -v {}
